Skip to content

fix(scenarios): make every skill-evals arm directory under the system temp directory - #34949

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-34934-arms-mkdtemp-base
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-34934-arms-mkdtemp-base

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34934
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:skill-evals 的每个 arm 工作目录固定建在系统临时目录下(mkdtempSync(join(tmpdir(), 'skill-eval-'))),去掉内部的 base 参数。
  • 为什么改:feat(scenarios): skill-evals runs the published skills' eval cases on a with-skill and a no-skill arm #34841 落地后 base 是带默认值的函数参数,dispatch-gates 的临时目录扫描读不出它,慢档自测判 UNRESOLVED,main 的 Lint · PM dispatch-gates 一直是红的。
  • 风险与回滚:极低;一轮评测的行为不变(原本就只用默认值),只有包内两处测试改为自行删除目录。回滚即 revert 本 PR。
  • 先看:packages/qa/scenarios/src/skill-evals/arms.ts(唯一的行为改动处),再看 test/skill-evals/skill-evals.test.ts 的清理。
  • 两分钟验证:node scripts/pm/check-dispatch-gates.mjs --slow,预期 no mkdtempSync site in this tree takes a base the scan cannot read 为 ✓、退出码 0。
  • 需要你做的:无,席位落地。

What changes

  • prepareArmWorkdir(arm, bundle, skillsRoot) makes its root with mkdtempSync(join(tmpdir(), 'skill-eval-')). The defaulted base parameter is removed. The scratch scan in scripts/pm/dispatch-gates.mjs cannot bind a parameter default, and it fails the build on any mkdtempSync site whose base it cannot read. The only production caller (run.ts) never passed a base, so a round behaves exactly as before.
  • The two test callers stop passing a scratch base. The --self-test rows already removed d.root. The vitest case now removes both roots in a finally and checks that the root lands under the system temp directory.
  • The scan and its self-test are not touched.
  • A patch changeset is included: arms.ts and self-test.ts ship inside the published dist/ (the skill-evals command line). No export changes.

Tests

Run at head 8f7facaa.

  • pnpm --filter @objectstack/scenarios typecheck: exit 0.
  • pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/skill-evals/skill-evals.test.ts: Test Files 1 passed (1), Tests 26 passed (26). The lock printed VERDICT command-exit 0.
  • pnpm skill-evals --self-test: ✓ skill-evals self-test: 21 rows pass., exit 0.
  • node scripts/check-nul-bytes.mjs: OK, exit 0.
  • node scripts/pm/overlap-check.mjs: VERDICT clean exit 0. The branch merges cleanly onto origin/main d576509c80.

Acceptance notes

  • The failing case is in the battery's slow tier. A plain local pnpm check:pm-dispatch-gates runs only the fast tier, and so does CI on pull_request and merge_group. That run was green on the unfixed tree: 2249 cases pass; 9 slow section(s) deferred, GATE_EXIT=0. So the before and after readings below come from the scan itself and from --slow. This PR's own check-runs cannot show the fix. The next push to main or the next schedule run shows it.

Verification

Before: unfixed tree at origin/main 189358f
  • Direct read of the scan (exposedScratchDirs({}) from scripts/pm/dispatch-gates.mjs, the function the failing case calls): sites=3078 files=22703 inTree=93 exposed=0 unresolvedMkdtemp=1, then UNRESOLVED packages/qa/scenarios/src/skill-evals/arms.ts:83 (base is not bound in this file). This is the main red.
  • pnpm check:pm-dispatch-gates with the default tier (fast): 2249 cases pass; 9 slow section(s) deferred, GATE_EXIT=0. This reading is green because the failing case is deferred, see Acceptance notes.
After: head 8f7faca
  • The same direct read: sites=3078 files=22703 inTree=93 exposed=0 unresolvedMkdtemp=0.
  • node scripts/pm/check-dispatch-gates.mjs --self-test: green. Then pnpm check:pm-dispatch-gates (fast tier): 2249 cases pass, GATE_EXIT=0.
  • node scripts/pm/check-dispatch-gates.mjs --slow (both tiers): ✓ no mkdtempSync site in this tree takes a base the scan cannot read, ✓ dispatch-gates self-test: 2564 cases pass., the battery (both tiers) took 1651.8s, GATE_EXIT=0.
Derived gate families (`dispatch-gates.mjs --commands`, 61)
  • 57 exit 0.
  • NOT MEASURED, prerequisite not met (exit 3), left to CI: node scripts/check-plugin-teardown-shape.mjs --self-test (shallow clone, the fixture is pinned to a commit) and pnpm check:dual-build-cjs-loads (needs a full pnpm build).
  • pnpm check:query-options-erasure: exit 0 on a rerun with a longer budget. The first run hit the 240 s cap.
  • pnpm check:type-check-debt: in progress when this PR was opened. CI covers it.

Generated by Claude Code

repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

… temp directory

prepareArmWorkdir took a defaulted base parameter, which the dispatch-gates
scratch scan cannot bind, so its mkdtempSync site read UNRESOLVED and the
slow tier of check:pm-dispatch-gates went red on main. The base is now
spelled at the call; the self-test and the unit test remove the roots they
make.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg1NmbJpZhtiWQkTir
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 1 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json c81f498b5f0614157864d9586da718dbe02121b1 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f313621e444d04936cb5bdaa6bc8e80e9e14dc3b — the merge of head 324800fc44c4657c691bb5b8862df84a97cbe4af into base c81f498b5f0614157864d9586da718dbe02121b1, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin f313621e444d04936cb5bdaa6bc8e80e9e14dc3b && git checkout f313621e444d04936cb5bdaa6bc8e80e9e14dc3b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c81f498b5f0614157864d9586da718dbe02121b1 324800fc44c4657c691bb5b8862df84a97cbe4af && git checkout -B drift-repro c81f498b5f0614157864d9586da718dbe02121b1 && git merge --no-ff 324800fc44c4657c691bb5b8862df84a97cbe4af

node scripts/docs-audit/affected-docs.mjs --json c81f498b5f0614157864d9586da718dbe02121b1

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT · 2026-11-17T17:49Z

Head-sha: 8f7faca
Reviewer: seat 3 L1-c, for card #34934, the P0 fix for main being red on the slow-tier scratch scan (os-dev report 6956171221).

席位核对

PR shape. Fixes #34934, base main. Four paths, +31/-11: skill-evals/arms.ts, skill-evals/self-test.ts, test/skill-evals/skill-evals.test.ts and one changeset. Not governed. Clause-②: no / Metadata-protocol: none.

The fix.

  • prepareArmWorkdir drops its defaulted base parameter. The root is now mkdtempSync(join(tmpdir(), 'skill-eval-')), spelled at the call. That is the shape the scan already reads elsewhere in the same package (skill-evals/cli.ts:134, join(tmpdir(), 'skill-evals-pack-')).
  • Callers on this head. git grep 'prepareArmWorkdir(' finds four:
    • run.ts:483, the production caller, never passed a base, so a round behaves exactly as before;
    • the two self-test.ts rows, which stop passing scratch (scratch is still used there for fixtureRoot and its own cleanup, so nothing is left unused);
    • the one vitest case.
  • The test. It now creates both roots, asserts w.root starts with join(tmpdir(), 'skill-eval-'), and removes both in a finally. Before, they were left to the scratch afterAll, and now they live outside it. The other assertions are unchanged.
  • The scan and its self-test are untouched.

Before and after. The failing case is slow tier, which the PR's own pull_request and merge_group checks do not run, so the report's direct reading is the evidence: unresolvedMkdtemp=1 at arms.ts:83 at 189358f2, then 0 at this head, and check-dispatch-gates.mjs --slow passes all 2564 cases. I did not re-run the slow tier. The code change is the minimal one that matches a shape the scan already resolves, so I accept the reading.

Changeset. @objectstack/scenarios patch. Note: on this head skill-evals runs through tsx src/skill-evals/cli.ts (the package.json script) and has no tsup entry, so I doubt the body's "arms.ts and self-test.ts ship in dist". A patch changeset is harmless either way, and Check Changeset is green.

Check-runs at 8f7faca, read at about 17:50Z. 46 runs, none failed. Already success: Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Type Check · workspace, Build Core, Check Changeset, PR-body guards, Governed Surface Queue Guard. Still in_progress: the Test Core shards, the remaining Lint legs and the remaining Type Check · legs. This verdict holds on the condition that Lint & Repo Gates, TypeScript Type Check and Test Core finish green on this head.

Must-fix

None.

Should-fix

None.

Notes

Next: o3-F lands as soon as the three aggregates are green. No seat L2 is owed. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfWpJ96QY9T7d8DvFg

L1: ACCEPT (merge-only) · 2026-11-17T18:23Z

Head-sha: 324800f
Reviewer: seat 3 L1-c. This confirms the head move 8f7facaa..324800fc against my ACCEPT 6956228121.

席位核对

A clean main merge. The new head is a merge commit:

  • its first parent is my ACCEPTed head 8f7facaa;
  • its second parent is main at c81f498b.

The PR's own diff is unchanged. The patch-id of the diff from the merge-base to 8f7facaa equals the patch-id of the diff from c81f498b to the new head (a6ada190…, identical), so the merge adds nothing to the PR. My ACCEPT carries over to this head.

The hop reruns CI after a runner red. That red was not the PR's doing, as o3-F's relay records. The ACCEPT's condition stands: Lint & Repo Gates, TypeScript Type Check and Test Core must finish green on this head.

Must-fix

None.

Should-fix

None.

Next: unchanged from my ACCEPT 6956228121. A later push owes an L1-c delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

Landing · area o3-F · 2026-11-17T18:47Z · P0 (main red in Lint · PM dispatch-gates since #34841)

Probe Reading
L1 ACCEPT 6956228121 at 8f7facaa; carried to 324800fc by 6957030782 (merge-only hop, main c81f498b, patch-id identical)
L2 not owed (Clause-②: no)
Checks on head 324800fc44 green (0 failure / pending)
check-governed-merges.mjs --pr 34949 NOT governed; 42 changed lines ≤ 3000
K (first-parent, PRBASE c81f498b..origin/main) 6 < 15
Open findings none (L1 notes only)

State change: ready for review + auto-merge (merge queue). Card #34934 closes on merge via Fixes. The fixed case is in dispatch-gates' slow tier, so the proof is the first green slow-tier run on main after this merges; the area links it on #34934.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 18:47
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

Re-queue · area o3-F · 2026-11-17T19:22Z · P0 · head 324800fc unchanged. Ejected at 2026-11-17T19:14Z by an infrastructure failure, not by the code: in merge-group run 44151891967 (Lint & Type Check, merge pr-34949-fff0ad0c), job Type Check · debt ledger timed out at step Checkout repository after 25 minutes, and TypeScript Type Check failed only on that lane's verdict. The other four merge-group workflows on that sha (CI, PR-Body Guards, Spec Liveness, Governed Surface Guard) concluded success. Review 6956228121 (carried by 6957030782) and landing 6957596971 stand. One re-queue; if ejected again the area stops and reports to the seat.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Triage re-judgement after the second ejection (platform-readings: "a second ejection of the same PR → stop re-queueing, re-judge by signature") · 2026-11-17T20:38Z

Signature: both ejections are the known infrastructure flake "Checkout repository timed out after 25 minutes".

  • 19:14Z, Type Check · debt ledger.
  • 20:31Z, run 44165454706, Lint · ESLint.

Neither touches this PR's change. Head 324800fc is unchanged, and it carries only arms.ts plus a changeset. The same checkout timeout ejected #34943 and #34914 in the same windows.

Verdict: this is a known flake, not this PR. Re-queue it as is, once more, citing this note as the receipt.

No queue jump. pr_enqueue_front reason (a) needs a fix for a signature that ejects others' PRs. This PR fixes the main-only Lint · PM dispatch-gates lane, which merge groups do not run, so it ejects no one. Reasons (b) and (c) do not apply either. A front jump would also restart every group behind it.

If a third ejection lands with the same signature, it goes to the maintainer as an infrastructure problem, with no further re-queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziH9rnXEpD9ne7yFhD

Re-queue · area o3-F · 2026-11-17T20:41Z · P0 · head 324800fc unchanged. Second ejection at 2026-11-17T20:31Z: merge-group run 44165454706 (Lint & Type Check), job Lint · ESLint timed out at step Checkout repository after 25 minutes, and Lint & Repo Gates failed only on that lane's verdict. Receipt: triage re-judgement 6960341446 (same known checkout-timeout flake on both ejections, not this change; re-queue once more as is, no queue jump). Review 6956228121 (carried by 6957030782) and landing 6957596971 stand. If ejected a third time on the same signature, the area does not re-queue and hands it to the seat as an infrastructure problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4-hourly full run: red on main (Lint & Type Check)

2 participants